// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "MyHUD.generated.h"

class UMyOverlay;

UCLASS()
class NEWMYPROJECT2_API AMyHUD : public AHUD
{
	GENERATED_BODY()

public:
	FORCEINLINE UMyOverlay* GetMyOverlay() const { return MyOverlay; }
protected:
	virtual void BeginPlay()override;

private:
	UPROPERTY(EditDefaultsOnly, Category = My)
	TSubclassOf<UMyOverlay>MyOverlayClass;

	UPROPERTY()
	UMyOverlay* MyOverlay;
};
